package com.mes.biz.service;

import com.github.pagehelper.PageInfo;
import com.mes.biz.domain.BizOrder;
import com.mes.biz.domain.BizOrderProduct;
import com.mes.biz.domain.BizProduct;
import com.mes.biz.domain.vo.BizOrderMaterialVo;
import com.mes.biz.domain.vo.OrderVo;
import com.mes.common.core.domain.model.LoginUser;
import com.mes.common.core.service.BaseService;
import com.mes.biz.domain.BizOrderMaterial;

import java.util.List;

/**
 * 销售单物料Service接口
 * @author wy
 * @email wy
 * @date 2023-06-20
 */
public interface BizOrderMaterialService extends BaseService<BizOrderMaterial> {

    /**
     * 批量删除销售单物料
     * @param ids 需要删除的销售单物料ID集合
     * @return 结果
     */
    public int deleteBizOrderMaterialByIds(String[] ids);

    public int deleteBizOrderMaterialByOrderId(String orderId);

    public boolean saveMaterials(BizOrder bizOrder, LoginUser loginUser);

    public List<BizOrderMaterial> getBizOrderMaterialByOrderId(String orderId);

    public List<BizOrderMaterialVo> findExportList(BizOrderMaterial bizOrderMaterial);

    public List<BizOrderMaterialVo> findPickList(BizOrderMaterial bizOrderMaterial);

    public PageInfo<BizOrderMaterialVo> findPageExportList(BizOrderMaterial bizOrderMaterial);

    public PageInfo<BizOrderMaterialVo> findPagePickList(BizOrderMaterial bizOrderMaterial);
}
